package com.javarush.test.level10.lesson11.home06;

/* Конструкторы класса Human
Напиши класс Human с 6 полями. Придумай и реализуй 10 различных конструкторов для него. Каждый конструктор должен иметь смысл.
*/

public class Solution
{
    public static void main(String[] args)
    {

    }

    public static class Human
    {
        //напишите тут ваши переменные и конструкторы
        public String name; //1
        public boolean sex; //2
        public int age; //3
        public int salary;  //4
        public int color;   //5
        public int iq;  //6

        public Human(String name, boolean sex, int age, int salary, int color, int iq)  //1
        {
            this.name = name;
            this.sex = sex;
            this.age = age;
            this.salary = salary;
            this.color = color;
            this.iq = iq;
        }

        public Human(String name, boolean sex, int age, int salary, int color)  //2
        {
            this(name, sex, age, salary, color, 100);
        }

        public Human(String name, boolean sex, int age, int salary)  //3
        {
            this(name, sex, age, salary, 1, 100);
        }

        public Human(String name, boolean sex, int age)  //4
        {
            this(name, sex, age, 200, 1, 100);
        }

        public Human(String name, boolean sex)  //5
        {
            this(name, sex, 20, 200, 1, 100);
        }

        public Human(String name)  //6
        {
            this(name, true, 20, 200, 1, 100);
        }

        public Human()  //7
        {
            this("John", true, 20, 200, 1, 100);
        }

        public Human(String name, int age)  //8
        {
            this(name, true, age, 200, 1, 100);
        }

        public Human(String name, int color, int iq)  //9
        {
            this(name, true, 20, 200, color, iq);
        }

        public Human(String name, int salary, int color, int iq)  //10
        {
            this(name, true, 20, salary, color, iq);
        }
    }
}
